#pragma once
#include "afxcmn.h"
#include "ChatClientBaseDlg.h"

// CChatClientLobbyDlg dialog

class CChatClientDoc;

class CChatClientLobbyDlg : public CChatClientBaseDlg
{
	CIPAddressCtrl m_ipAddress;
	DWORD m_port;
	CListCtrl m_lobby;
	CIPAddressCtrl m_coordinatorAddress;
	DWORD m_coordinatorPort;

	DECLARE_DYNAMIC(CChatClientLobbyDlg)	

public:
	CChatClientLobbyDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CChatClientLobbyDlg();

// Dialog Data
	enum { IDD = IDD_DIALOG_CHATCLIENT_LOBBY };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	void insertChatRoom(NetworkID& roomID, const TCHAR* pRoomName);
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButtonConnect();
	
	virtual BOOL OnInitDialog();
	
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	afx_msg void OnBnClickedButtonCreateRoom();
	afx_msg void OnBnClickedButtonJoinRoom();
	void			QueryChatRoom();
	
};
